<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>管理后台</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <script src="/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    注：在此列表读取content字段并不科学，请实际使用时另外设计，此只是为了方便直接列出来而已
                </div>
                <div class="layui-card-body ">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>发送人ID</th>
                            <th>接收人ID</th>
                            <th>时间</th>
                            <th>内容</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {if $dataList['list']}
                        {foreach $dataList['list'] as $key=>$item}
                        <tr>
                            <td>{$item['id']}</td>
                            <td>{$item['sender_id']}</td>
                            <td>{$item['receive_id']}</td>
                            <td>{$item['create_time']|date="Y-m-d H:i"}</td>
                            <td>{$item['content']}</td>
                            <td></td>
                        </tr>
                        {/foreach}
                        {else}
                        <tr>
                            <td colspan="6">
                                暂无数据
                            </td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    <div class="page">
                        {$dataList['pageLink']|raw}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
